package com.ecommerce.web.controller;

import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.validation.Validator;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.ecommerce.dal.service.ICategoryManagerService;

@Controller
public class CategoryController extends ParentController {

	@Autowired
	@Qualifier("categoryValidator")
	private Validator categoryValidator;
	
	@Autowired
	private ICategoryManagerService categoryManagerService;
	
	@RequestMapping(value="/admin/AddCategory.htm", method = RequestMethod.GET)
	public String addCategory(ModelMap map) {
		return "AddCategory";
	}
	
	@RequestMapping(value="/admin/DeleteCategory.htm", method = RequestMethod.GET)
	public String deleteCategory(ModelMap map) {
		return "deleteCategory";
	}	
}
